<include file="Public/head"/>
<script src="{:get_style_cdnurl()}paimai/yunying/js/city.js" type="text/javascript"></script>
<style type="text/css">
    .branch_company, .man_id {
        display: block;
        text-align: center;
        width: 300px;
        background: #fff url("{:get_style_cdnurl()}paimai/yunying/images/sanjiao.jpg") no-repeat scroll 280px 7px;
        border: 1px solid #d2d2d2;
        color: #303030;
        height: 26px;
        line-height: 26px;
    }
</style>
</head>
<include file="Public/common_header"/>
<div class="mian">
    <include file="Public/sidebar" menu='zhgl.cszh'/>
    <div class="mianR">
        <h3 class="yonghu">编辑车商</h3>
        <h4 class="number-text">车商基本信息</h4>
        <div class="new-dealer">
            <form id="dealerForm">
                <input type="hidden" name="dealer_id" value="{$dealer.dealer_id}">
                <table class="table">
                    <tbody>
                    <tr>
                        <td width="15%">用户名</td>
                        <td>{$dealer.user_name}</td>
                    </tr>
                    <if condition="$dealer.auth_type gt 0 AND $dealer.auth_status eq 2">
                        <tr>
                            <td>头像</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.avatar}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_ico.jpg"
                                     class="portrait-ico">
                            </td>
                        </tr>
                    </if>
                    <if condition="$dealer.auth_type eq 1 AND $dealer.auth_status eq 2">
                        <tr>
                            <td>姓名</td>
                            <td>{$dealer.real_name}</td>
                        </tr>
                        <tr>
                            <td>身份证号</td>
                            <td>{$dealer.dealer_idcard}</td>
                        </tr>
                        <tr>
                            <td>身份证正面</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.idcard_front_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td>身份证背面</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.idcard_back_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td width="15%">手持身份证</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.idcard_hold_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td>通讯地址</td>
                            <td>{$dealer.address}</td>
                        </tr>
                    </if>

                    <if condition="$dealer.auth_type eq 2 AND $dealer.auth_status eq 2">
                        <tr>
                            <td>公司名称</td>
                            <td>{$dealer.fullname}</td>
                        </tr>
                        <tr>
                            <td>营业执照号</td>
                            <td>{$dealer.business_license_num}</td>
                        </tr>
                        <tr>
                            <td>营业执照照片</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.business_license_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td width="15%">是否三证合一</td>
                            <td>{$dealer.three_in_one}</td>
                        </tr>
                        <if condition="$dealer.is_three_in_one neq 1">
                            <tr>
                                <td>组织机构代码证号码</td>
                                <td>{$dealer.organization_code}</td>
                            </tr>
                            <tr>
                                <td>组织机构代码证照片</td>
                                <td><img src="{:get_content_cdnurl()}{$dealer.organization_code_pic}"
                                         _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                            </tr>
                            <tr>
                                <td>税务登记证号</td>
                                <td>{$dealer.tax_reg_cert_no}</td>
                            </tr>
                            <tr>
                                <td>税务登记证照片</td>
                                <td><img src="{:get_content_cdnurl()}{$detail.tax_reg_cert_pic}"
                                         _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                            </tr>
                        </if>
                        <tr>
                            <td width="15%">授权人姓名</td>
                            <td>{$dealer.contact_person}</td>
                        </tr>
                        <tr>
                            <td width="15%">授权人身份证</td>
                            <td>{$dealer.dealer_idcard}</td>
                        </tr>
                        <tr>
                            <td width="15%">授权人身份证正面</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.idcard_front_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td width="15%">授权人身份证背面</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.idcard_back_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td width="15%">授权人手持身份证照</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.idcard_hold_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td width="15%">授权委托书</td>
                            <td><img src="{:get_content_cdnurl()}{$dealer.auth_letter_pic}"
                                     _src="{:get_style_cdnurl()}paimai/yunying/images/carded_pic_bg.jpg"></td>
                        </tr>
                        <tr>
                            <td width="15%">通讯地址</td>
                            <td>{$dealer.address}</td>
                        </tr>
                    </if>

                    <if condition="$dealer.auth_type gt 0 AND $dealer.auth_status eq 2">
                        <tr>
                            <td width="15%">车商类型</td>
                            <td>{$dealer.auth_type_name}</td>
                        </tr>
                    </if>

                    <tr>
                        <td>
                            <if condition="$dealer.auth_type gt 1">
                                授权人手机号
                                <else/>
                                手机号
                            </if>
                        </td>
                        <td>
                            <if condition="$dealer.auth_type gt 1">
                                {$dealer.contact_mobile}
                                <else/>
                                {$dealer.mobile}
                            </if>

                        </td>
                    </tr>
                    <tr>
                        <td>经营城市</td>
                        <td>
                            {$dealer.business_city_name}
                        </td>
                    </tr>
                    <tr>
                        <td>客户经理</td>
                        <td>
                            {$dealer.manager_name}
                        </td>
                    </tr>
                    <tr>
                        <td width="15%">车商等级</td>
                        <td>
                            {$dealer.level_name}
                        </td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>

        <div class="new-dealer">
            <h3 class="yonghu">提车人信息</h3>
            <div class="cheshang">
                <h4 class="clearfix">
                    <em>姓名</em>
                    <!--<em>性别</em>-->
                    <em>手机号码</em>
                    <em>身份证号码</em>
                    <em>提车数量</em>
                </h4>
                <ul class="ticheren">
                    <?php foreach($man_list as $k=>$man):?>
                    <li class="clearfix <?php echo ($k/2 ==1 )? '' : 'ticheBg' ;?>">
                        <em>{$man.real_name}</em>
                        <!--<em><?php echo C('SEX.'. $man['sex'])?></em>-->
                        <em>{$man.mobile}</em>
                        <em>{$man.idcard}</em>
                        <em>{$man.take_num}</em>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
        </div>

        <div class="yongBtn1">
            <input name="close" type="button" class="quxiao" onclick="window.close()" value="关闭"/>
        </div>
    </div>
    <div class="clear"></div>
</div>
<!--弹出框效果-->
<div class="sunbox-alret">
    <img src=""/>

</div>
<div class="fork"></div>
<div class="xuanzhuan"></div>
<div class="xie-loading"></div>
<div class="pageBeijing"></div>
<script type="text/javascript" src="{:get_style_cdnurl()}paimai/yunying/js/jquery.rotate.min.js"></script>
<script style="text/javascript">
    $(function () {
        $(".new-dealer .table img").each(function () {
            var srcImg = $(this).attr("_src");
            if ($(this).attr("src") == "") {
                $(this).attr("src", srcImg);
            }
            $(this).click(function () {
                if ($(this).attr("src") == srcImg) {
                    return false;
                }
                var Img = $(this).attr("src").split("@");
                $(".xuanzhuan").fadeIn();
                $(".fork").fadeIn();
                $(".pageBeijing").css("display", "block");
                $(".xie-loading").fadeIn();
                $(".sunbox-alret img").attr("src", Img[0]).get(0).onload = function () {
                    $(".sunbox-alret").fadeIn();
                    $(".sunbox-alret").rotate(0);
                    $(".xie-loading").fadeOut();
                    $(".sunbox-alret").css("top", $(window).scrollTop());
                    $(".sunbox-alret").css({
                        "marginTop": 100,
                        "marginLeft": -$(".sunbox-alret").outerWidth() / 2
                    });
                };
            });
        });
        var num = 0;
        $(function () {
            $(".xuanzhuan").click(function () {
                num++;
                $(".sunbox-alret").rotate(90 * num);
            });
        });

        $(".fork").click(function () {
            $(".pageBeijing").css("display", "none");
            $(".sunbox-alret").fadeOut();
            $(".xuanzhuan").fadeOut();
            $(".fork").fadeOut();
            $(".xie-loading").fadeOut();
            $(".sunbox-alret img").attr("src", "");
            num = 0;
        });
    });
</script>
<include file="Public/foot"/>